package com.xd.community.model.entity;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 公众号粉丝实体
 * 
 * @author LJ
 */
public class Fans
{
	private Integer id;// 主键ID

	private String openid;// 用户的标识，对当前公众号唯一

	private Integer groupid;// 用户所在的分组ID

	private Integer subscribe;// 用户是否关注 0：未关注 1：关注

	private String nickname;// 用户昵称

	private Integer sex;// 用户的性别，值为1时是男性，值为2时是女性，值为0时是未知

	private String city;// 用户所在城市

	private String province;// 用户所在省份

	private String country;// 用户所在国家

	private String language;// 用户的语言，简体中文为zh_CN

	private String headimgurl;// 用户头像，最后一个数值代表正方形头像大小（有0、46、64、96、132数值可选，0代表640*640正方形头像），用户没有头像时该项为空。若用户更换头像，原有头像URL将失效。

	private Date subscribetime;// 用户关注时间，为时间戳。如果用户曾多次关注，则取最后关注时间

	/**
	 * 借用字段
	 * 原：只有在用户将公众号绑定到微信开放平台帐号后，才会出现该字段
	 * 新：用户扫关注码状态标识 0-> 扫码后未跳转指定网页, 1-> 已跳转过指定页面
	 */
	private String unionid;

	private String remark;// 公众号运营者对粉丝的备注，公众号运营者可在微信公众平台用户管理界面对粉丝添加备注

	private String popenid;// 分销商OpenID

	private Integer diststate;// 分销商申请状态 0：未申请 1：申请中 2：已审核

	private Date distdate;// 申请分销时间

	private String realname;// 真实姓名

	private String idnumber;// 身份证号

	private String cellphone;// 手机号

	private String bankname;// 开户行

	private String bankcard;// 银行卡号

	private String alipayaccount;// 支付宝账号

	private String datafile;// 附件地址

	private BigDecimal commissionrate;// 佣金比例系数

	private Boolean isused;// 是否禁用分销商

	private Date examinedate;// 审核时间

	private String examineuser;// 审核人

	private String twobarurl;// 分销商二维码

	private Integer ischange;// 修改收款信息：1：可修改 2：不能修改 3：申请修改

	private Boolean isregister;// 是否注册电商

	private Boolean delflag;// 删除标记 0：未删除 1：已删除

	private Date createdate;// 创建时间

	private String createuser;// 创建人

	private Date updatedate;// 修改时间

	private String updateuser;// 修改人

	public Integer getId()
	{
		return id;
	}

	public void setId(Integer id)
	{
		this.id = id;
	}

	public String getOpenid()
	{
		return openid;
	}

	public void setOpenid(String openid)
	{
		this.openid = openid == null ? null : openid.trim();
	}

	public Integer getGroupid()
	{
		return groupid;
	}

	public void setGroupid(Integer groupid)
	{
		this.groupid = groupid;
	}

	public Integer getSubscribe()
	{
		return subscribe;
	}

	public void setSubscribe(Integer subscribe)
	{
		this.subscribe = subscribe;
	}

	public String getNickname()
	{
		return nickname;
	}

	public void setNickname(String nickname)
	{
		this.nickname = nickname == null ? null : nickname.trim();
	}

	public Integer getSex()
	{
		return sex;
	}

	public void setSex(Integer sex)
	{
		this.sex = sex;
	}

	public String getCity()
	{
		return city;
	}

	public void setCity(String city)
	{
		this.city = city == null ? null : city.trim();
	}

	public String getProvince()
	{
		return province;
	}

	public void setProvince(String province)
	{
		this.province = province == null ? null : province.trim();
	}

	public String getCountry()
	{
		return country;
	}

	public void setCountry(String country)
	{
		this.country = country == null ? null : country.trim();
	}

	public String getLanguage()
	{
		return language;
	}

	public void setLanguage(String language)
	{
		this.language = language == null ? null : language.trim();
	}

	public String getHeadimgurl()
	{
		return headimgurl;
	}

	public void setHeadimgurl(String headimgurl)
	{
		this.headimgurl = headimgurl == null ? null : headimgurl.trim();
	}

	public Date getSubscribetime()
	{
		return subscribetime;
	}

	public void setSubscribetime(Date subscribetime)
	{
		this.subscribetime = subscribetime;
	}

	public String getUnionid()
	{
		return unionid;
	}

	public void setUnionid(String unionid)
	{
		this.unionid = unionid == null ? null : unionid.trim();
	}

	public String getRemark()
	{
		return remark;
	}

	public void setRemark(String remark)
	{
		this.remark = remark == null ? null : remark.trim();
	}

	public String getPopenid()
	{
		return popenid;
	}

	public void setPopenid(String popenid)
	{
		this.popenid = popenid == null ? null : popenid.trim();
	}

	public Integer getDiststate()
	{
		return diststate;
	}

	public void setDiststate(Integer diststate)
	{
		this.diststate = diststate;
	}

	public String getRealname()
	{
		return realname;
	}

	public void setRealname(String realname)
	{
		this.realname = realname == null ? null : realname.trim();
	}

	public String getIdnumber()
	{
		return idnumber;
	}

	public void setIdnumber(String idnumber)
	{
		this.idnumber = idnumber == null ? null : idnumber.trim();
	}

	public String getCellphone()
	{
		return cellphone;
	}

	public void setCellphone(String cellphone)
	{
		this.cellphone = cellphone == null ? null : cellphone.trim();
	}

	public String getDatafile()
	{
		return datafile;
	}

	public void setDatafile(String datafile)
	{
		this.datafile = datafile == null ? null : datafile.trim();
	}

	public BigDecimal getCommissionrate()
	{
		return commissionrate;
	}

	public void setCommissionrate(BigDecimal commissionrate)
	{
		this.commissionrate = commissionrate;
	}

	public Boolean getIsused()
	{
		return isused;
	}

	public void setIsused(Boolean isused)
	{
		this.isused = isused;
	}

	public Date getDistdate()
	{
		return distdate;
	}

	public void setDistdate(Date distdate)
	{
		this.distdate = distdate;
	}

	public Date getExaminedate()
	{
		return examinedate;
	}

	public void setExaminedate(Date examinedate)
	{
		this.examinedate = examinedate;
	}

	public String getExamineuser()
	{
		return examineuser;
	}

	public void setExamineuser(String examineuser)
	{
		this.examineuser = examineuser == null ? null : examineuser.trim();
	}

	public String getBankname()
	{
		return bankname;
	}

	public void setBankname(String bankname)
	{
		this.bankname = bankname == null ? null : bankname.trim();
	}

	public String getBankcard()
	{
		return bankcard;
	}

	public void setBankcard(String bankcard)
	{
		this.bankcard = bankcard == null ? null : bankcard.trim();
	}

	public String getAlipayaccount()
	{
		return alipayaccount;
	}

	public void setAlipayaccount(String alipayaccount)
	{
		this.alipayaccount = alipayaccount == null ? null : alipayaccount.trim();
	}

	public String getTwobarurl()
	{
		return twobarurl;
	}

	public void setTwobarurl(String twobarurl)
	{
		this.twobarurl = twobarurl == null ? null : twobarurl.trim();
	}

	public Integer getIschange()
	{
		return ischange;
	}

	public void setIschange(Integer ischange)
	{
		this.ischange = ischange;
	}

	public Boolean getIsregister()
	{
		return isregister;
	}

	public void setIsregister(Boolean isregister)
	{
		this.isregister = isregister;
	}

	public Boolean getDelflag()
	{
		return delflag;
	}

	public void setDelflag(Boolean delflag)
	{
		this.delflag = delflag;
	}

	public Date getCreatedate()
	{
		return createdate;
	}

	public void setCreatedate(Date createdate)
	{
		this.createdate = createdate;
	}

	public String getCreateuser()
	{
		return createuser;
	}

	public void setCreateuser(String createuser)
	{
		this.createuser = createuser == null ? null : createuser.trim();
	}

	public Date getUpdatedate()
	{
		return updatedate;
	}

	public void setUpdatedate(Date updatedate)
	{
		this.updatedate = updatedate;
	}

	public String getUpdateuser()
	{
		return updateuser;
	}

	public void setUpdateuser(String updateuser)
	{
		this.updateuser = updateuser == null ? null : updateuser.trim();
	}

	@Override
	public String toString() {
		return "Fans{" +
				"id=" + id +
				", openid='" + openid + '\'' +
				", groupid=" + groupid +
				", subscribe=" + subscribe +
				", nickname='" + nickname + '\'' +
				", sex=" + sex +
				", city='" + city + '\'' +
				", province='" + province + '\'' +
				", country='" + country + '\'' +
				", language='" + language + '\'' +
				", headimgurl='" + headimgurl + '\'' +
				", subscribetime=" + subscribetime +
				", unionid='" + unionid + '\'' +
				", remark='" + remark + '\'' +
				", popenid='" + popenid + '\'' +
				", diststate=" + diststate +
				", distdate=" + distdate +
				", realname='" + realname + '\'' +
				", idnumber='" + idnumber + '\'' +
				", cellphone='" + cellphone + '\'' +
				", bankname='" + bankname + '\'' +
				", bankcard='" + bankcard + '\'' +
				", alipayaccount='" + alipayaccount + '\'' +
				", datafile='" + datafile + '\'' +
				", commissionrate=" + commissionrate +
				", isused=" + isused +
				", examinedate=" + examinedate +
				", examineuser='" + examineuser + '\'' +
				", twobarurl='" + twobarurl + '\'' +
				", ischange=" + ischange +
				", isregister=" + isregister +
				", delflag=" + delflag +
				", createdate=" + createdate +
				", createuser='" + createuser + '\'' +
				", updatedate=" + updatedate +
				", updateuser='" + updateuser + '\'' +
				'}';
	}
}